package org.coder.consumer_sentinel_9005.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class SentinelBlockHandler {
    //如果不在同一个类中，必须是静态方法
    public static String sentinelBlockHandler(BlockException e) {
        return "被限流sentinelClass";
    }

    public static String sentinelThreadBlockHandler(BlockException e) {
        return "被限流sentinelClass";
    }

    public static String ChainBlockHandler(BlockException e) {
        return "被限流ChainBlockHandler";
    }
}
